<?php

namespace app\api\validate;

use think\Validate;

class CarValidate extends Validate
{
    protected $rule = [
        'license|车牌' => 'require',
        'car_model|车型' => 'require',
        'total_weight|总重量' => 'require',
        'approved_weight|核定重量' => 'require',
        'car_length|车长' => 'require',
        'car_width|车宽' => 'require',
        'car_height|车高' => 'require',
        'axle|轴数' => 'require',
        'discharge|排放' => 'require',
        'license_color|车牌颜色' => 'require',
    ];

    protected $message = [

    ];

    protected $scene = [
        'edit' => ['license','car_model','total_weight','approved_weight','car_length','car_width','car_height','axle','discharge','license_color'],
        'index' => [],
    ];
}
